<template>
  <view class="vin-swiper__wrapper">
    <swiper
      :style="mainStyle"
      :class="mainClass"
      :duration="duration"
      :autoplay="isAutoPlay"
      :interval="interval"
      :circular="loop"
      :current="current"
      :vertical="isVertical"
      :disable-touch="!touchable"
      :indicator-dots="paginationVisible"
      :indicator-color="paginationColor"
      :indicator-active-color="paginationActiveColor"
      @change="onChange"
    >
      <swiper-item v-for="item in list" :key="item" class="vin-swiper-item">
        <slot :data="item" />
      </swiper-item>
    </swiper>

    <slot name="page" />
  </view>
</template>
<script>import s from './index.js';export default s;</script>